package top.majuan.springboot3.dao.message;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import top.majuan.springboot3.entity.message.TbMessage;

@Mapper
public interface TbMessageMapper extends BaseMapper<TbMessage> {
    @Update("update tb_message set hits = hits + 1 where id = #{id}")
    void updateHits(@Param("id") Integer id);
}
